<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-bordered">
        <thead>
            <tr>
                <th class="text-center"><div class="table-first-id">ID</div></th>
                <th class="text-center" width="20%">推广员名称</th>
                <th class="text-center" width="15%">手机</th>
                <th class="text-center" width="15%">分成方式</th>
                <th class="text-center" width="10%">一级分成比例</th>
                <th class="text-center" width="10%">二级分成比例</th>
                <th class="text-center" width="10%">奖励金分成笔记</th>
                <th class="text-center" width="15%">创建来源</th>
            </tr>
        </thead>
    </table>
    <div class="J_V_tabContent table-xScrollWrap">
        <table class="table table-bordered table-hover table-xs-content">
            <tbody>
            <tr class="jqgfirstrow" role="row">
                <th class="text-center"><div class="table-first-id">&nbsp;</div></th>
                <th class="text-center" width="20%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="10%">&nbsp;</th>
                <th class="text-center" width="15%">&nbsp;</th>
            </tr>
            <tr th:if="${#lists.isEmpty(dataMap['list'])}">
                <td colspan="8" class="text-center">
                    <div class="noDataTipsBox">
                        <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                    </div>
                </td>
            </tr>
            <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="agentUser : ${dataMap['list']}" th:attr="data-id=${agentUser['id']}">
                <td class="text-center">
                    <label>
                        <input type="radio" name="agentUserId" class="i-checks" th:value="${agentUser['id']}" th:title="${agentUser['agentUserName']}" th:text="${agentUser['id']}" th:attr="settType=${agentUser['settType']}" th:attrappend="twoScale=${agentUser['twoScale']}"/>
                    </label>
                </td>
                <td class="text-center" th:text="${agentUser['agentUserName']}"></td>
                <td class="text-center" th:text="${agentUser['mobile']}"></td>
                <td class="text-center" th:text="${agentUser['divideType']}==1?'固定分成':'——'"></td>
                <td class="text-center" th:text="${agentUser['oneScale']} + '%'"></td>
                <td class="text-center" th:text="${agentUser['twoScale']} + '%'"></td>
                <td class="text-center" th:text="${agentUser['bonusScale']} + '%'"></td>
                <td class="text-center" th:text="${agentUser['createFrom']}==1?'代创建':'自申请'"></td>
            </tr>
            </tbody>
        </table>
    </div>
    <!-- 分页，开始 -->
    <div data-th-replace="layout/adminPage"></div>
    <!-- 分页，结束 -->
</div>
</html>